<?

class Smutty_Controller_Smutty extends Smutty_Controller {

	/**
	 *  handles a request for a smutty resource
	 *
	 */

	function resourceAction( $data ) {

		Smutty_Main::loadClass( 'Smutty_Resource' );

		$path = 'library/public/' .
			$data->string('folder') . '/' .
			$data->string('file');

		if ( file_exists($path) )
			Smutty_Resource::output( $path );

	}

}

?>